﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" 
AutoEventWireup="false" CodeBehind="CustomerDetail.aspx.vb" 
Inherits="ACompany.OrderProcessing.UI.MVCWeb.CustomerDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<h2>Customer Detail</h2>
<ul>

<li>Id: <%=Html.Encode(ViewData.Model.Id.ToString)%></li>
<li>Name: <%=Html.Encode(ViewData.Model.Name)%></li>
<li>Email: <%=Html.Encode(ViewData.Model.Email)%></li>
</ul>

Address
<ul>
    <li><%=Html.Encode(ViewData.Model.Address.Street)%></li>
    <li><%=Html.Encode(ViewData.Model.Address.City)%></li>
    <li><%=Html.Encode(ViewData.Model.Address.County)%></li>
    <li><%=Html.Encode(ViewData.Model.Address.PostCode)%></li>
</ul>

<%=Html.ActionLink("Edit Customer", "Edit", New With {.id = ViewData.Model.Id.ToString})%>

</asp:Content>
